package mybatisplus.controller;

import mybatisplus.entity.User;
import mybatisplus.service.UserService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Auther: tomj
 * @Date: 2019-03-12 10:26
 * @Description:
 */
@Controller
public class UserController {

    @Resource
    UserService userService;

    @RequestMapping("/userlist")
    public List<User> getUserList(){
        return userService.list(null);
    }
}
